package com.zzkk.database.controller;

import com.zzkk.database.bh.mapper.BhMapper;
import com.zzkk.database.entity.SynTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/")
public class BhController {

    @Autowired
    private BhMapper bhMapper;

    @RequestMapping("bh")
    public List<SynTest> get(){
        List<SynTest> synTest = bhMapper.get();
        return synTest;
    }
}
